<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



Auth::routes();

Route::get('/home', 'home\VenueController@list');
Route::get('/', 'home\VenueController@list');

// 获所有取场馆列表
Route::get('/venue/list', 'home\VenueController@list');

// 获取栏目下的列表
Route::get('/venue/type/{id}', 'home\VenueController@type');

// 场馆详情页
Route::get('/venue/detail/{id}', 'home\VenueController@detail');

// 创建场馆
Route::get('/venue/create', 'home\VenueController@create');

// 我的场馆
Route::get('/venue/my_venues', 'home\VenueController@my_venues');
Route::get('/venue/delete/{id}', 'home\VenueController@delete');

// 我的收藏
Route::get('/venue/my_follows', 'home\VenueController@my_follows');

// 修改场馆
Route::get('/venue/edit/{id}', 'home\VenueController@edit');
// 更新场馆
Route::post('/venue/update', 'home\VenueController@update');

// 保存场馆
Route::post('/venue/save', 'home\VenueController@save');


// 关注场馆
Route::get('/venue/follow/{id}', 'home\VenueController@follow');
Route::get('/venue/unfollow/{id}', 'home\VenueController@unfollow');


// 价格维护

Route::get('/price/edit/{id}', 'home\PriceController@edit');

// 更新价格
Route::post('/price/update', 'home\PriceController@update');


// 用户头像上传
Route::get('/user/set_icon', 'home\UserController@set_icon');


// 保存用户头像
Route::post('/user/save_icon', 'home\UserController@save_icon');


// 保存订单
Route::post('/order/save', 'home\OrderController@save');

// 测试路由
Route::get('/order/test', 'home\OrderController@test');

Route::get('/m', function(){
    return view("m/master");
});


